function a = GetToalArea()

for i=1:10
%	i=1;
	jj=0;
	tmp = load (strcat("seed",num2str(i),".txt"));
	s = size(tmp);
	l = s(1,1);

	for ii=1:10:5000
		final = tmp(ii:ii+9,:);
		count=0;
		for j=1:10
			for k=1:10 
				if final(j,k)==0
					count++;
				end;
			end;
		end;
		
		jj++;
 		a(i,jj)=100-count;
	end;


end;
i=11;
jj=0;
tmp = load ('seed.txt');
	s = size(tmp);
	l = s(1,1);

	for ii=1:10:5000
		final = tmp(ii:ii+9,:);
		count=0;
		for j=1:10
			for k=1:10 
				if final(j,k)==0
					count++;
				end;
			end;
		end;
		
		jj++;
 		a(i,jj)=100-count;
	end;

XL=[0, 100];
plot(a(1,:));
hold on;
for pl = 2:10
plot(a(pl,:));
end;
plot(a(11,:),'r');
hold off;
xlabel('Tick Count');
ylabel('Area Covered (in %)');
ylim(XL);
box('off');
title('Area coverage (in %) against tick count') 
end
